package xyz.jangle.base;
/**
 * Example15.2 
 * @author Administrator
 *
 */
public class People extends Thread {
	
	StringBuffer str;
	People(String s,StringBuffer str){
		setName(s);
		this.str = str;
	}
	@Override
	public void run() {
		for(int i=0;i<4;i++) {
			str.append(getName()+",");
			System.out.println("我是"+getName()+",Str:"+str);
			try {
				sleep(200);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
	
	

}
